package com.gexin.model.weixin;

import com.gexin.model.weixin.base.BaseWeixinUserCoupon;

/**
 * 业务名称:  t_weixin_user_coupon(用户优惠劵表) 
 */
@SuppressWarnings("serial")
public class WeixinUserCoupon extends BaseWeixinUserCoupon<WeixinUserCoupon> {
	public static final WeixinUserCoupon dao = new WeixinUserCoupon();

	public WeixinUserCoupon findByUserIdAndCoupon(Integer userId , String couponId) {

		return findFirst("select * from t_weixin_user_coupon where user_id=? and coupon_no=?",userId,couponId);
	}
}
